AUTOMAKE_OPTIONS=foreign
SUBDIRS=src build include
ACLOCAL_AMFLAGS=-I m4
pkgconfigdir = $(prefix)/lib/pkgconfig
pkgconfig_DATA = $(PACKAGE).pc

EXTRA_DIST=autogen.sh README README.zh-cn.md README.md LICENSE.TXT \
CHANGELOG.md \
CHANGELOG.zh-cn.md \
docs/CodingStyle.zh-cn.md \
test/README.zh-cn \
test/Makefile.in \
test/Makefile.am \
test/helloworld.c \
test/helloworld.css \
test/helloworld.xml \
test/test.c \
test/test.h \
test/test_touch.c \
test/test_string.c \
test/test_thread.c \
test/test_string_render.c \
test/test_widget_render.c \
test/test_char_render.c \
test/test_css_parser.css \
test/test_css_parser.xml \
test/test_css_parser.c \
test/test_xml_parser.xml \
test/test_xml_parser.c \
test/test_font_load.c \
test/test_font_load.css \
test/test_font_load.ttf \
test/test_image_reader.c \
test/test_image_reader.bmp \
test/test_image_reader.jpg \
test/test_image_reader.png \
test/test_scrollbar.c \
test/test_scrollbar.xml \
test/test_widget_opacity.c \
test/test_widget_opacity.css \
test/test_widget_opacity.xml \
test/test_widget_layout.c \
test/test_widget_layout.css \
test/test_widget_layout.xml \
test/test_widget_flex_layout.c \
test/test_widget_flex_layout.css \
test/test_widget_flex_layout.xml \
test/test_widget_inline_block_layout.c \
test/test_widget_inline_block_layout.css \
test/test_widget_inline_block_layout.xml \
test/test_widget_rect.c

.PHONY: test

test:
	cd test && make && ./test && valgrind --leak-check=full --error-exitcode=42 .libs/lt-test

@CODE_COVERAGE_RULES@

